﻿component accessors="true" extends="controllerbase" {

	property role;
	this.entityObj = "role";


	//返回Json数据格式内容
	public void function list(rc)
	{
		var moduleSqlWhere = "";
		if( structKeyExists(rc, "name") && len(trim(rc.name)) >0 ){
			moduleSqlWhere = moduleSqlWhere & " and name like '%" & name & "%' " ;
		}
		
		if( structKeyExists(rc, "description") && len(trim(rc.description)) >0 ){
			moduleSqlWhere = moduleSqlWhere & " and description like '%" & description & "%' " ;
		}
		
		super.list(rc,moduleSqlWhere);
	}

}